package com.fund.api.entity;

import com.fund.common.enums.EntrustMode;
import com.fund.common.enums.OrderChannel;
import com.fund.common.enums.OrderStatus;
import com.fund.common.enums.TradeType;
import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDateTime;

@Data
public class TradeOrder {
    private Long id;
    //订单号
    private String orderNumber;
    //客户id
    private Long clientId;
    //客户的账号，冗余字段
    private String clientAccount;
    //基金id
    private Long fundId;
    //基金代码，冗余字段
    private String fundCode;
    //订单类型
    private TradeType type;
    //金额
    private BigDecimal amount;
    //份额数量
    private Integer shareQuantity;
    //订单状态
    private OrderStatus orderStatus;
    //银行卡id
    private Long cardId;
    //交易日期
    private Integer tradeDay;
    //确认日期
    private Integer confirmDay;
    //确认净值
    private BigDecimal confirmWorth;
    //付款渠道
    private OrderChannel orderChannel;
    //备注
    private String remark;
    //委托方式
    private EntrustMode entrustMode;
    //操作员id
    private Long operatorId;
    //创建时间
    private LocalDateTime createTime;
    //更新时间
    private LocalDateTime updateTime;
}
